From b03c734dfb7948d43638f417efb8aabbae0b44af Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Tue, 14 Apr 2026 19:49:07 +0200 Subject: [PATCH] st/button: Prefer notify_by_pspec where possible Avoids the property by name lookup Part-of: --- src/st/st-button.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/st/st-button.c b/src/st/st-button.c index f509cf4f3..b1d3b913f 100644 --- a/src/st/st-button.c +++ b/src/st/st-button.c @@ -161,7 +161,7 @@ button_click_gesture_notify_pressed_cb (GObject *gobject, else st_widget_remove_style_pseudo_class (widget, "active"); - g_object_notify (G_OBJECT (widget), "pressed"); + g_object_notify_by_pspec (G_OBJECT (widget), props[PROP_PRESSED]); } static gboolean -- 2.39.5